<table border='1' cellspacing='0' cellpadding='2' style="width:500px;margin:auto">
	<tr>
		<th width='40px'>STT</th>
		<th >Email đăng kí nhận tin</th>
		<th width='1%'>Xóa</th>
	</tr>
<?php
$table=Db::mysql_query("SELECT * FROM tbl_email ORDER BY email_id DESC", FETCH_MODE_TABLE);
foreach ($table as $key=>$row)
{
?>
	<tr>
		<td align="center"><?php echo $key+1?></td>
		<td ><?php echo $row['email_address']?></td>
		<td >
			<input type='button' value='Xóa' onclick="
			if(confirm('Bạn có đồng ý xóa không email: <?php echo $row['email_address']?>?'))
				window.location='popup.php?page=_email-delete&id=<?php echo $row['email_id']?>';
			"/>
		</td>
	</tr>
<?php 
}
?>
</table>